home *** CD-ROM | disk | FTP | other *** search
- case $CONFIG in
- '') . config.sh ;;
- esac
- outputfile=sendmail.cf
- rm -f $outputfile.$$
- echo "Creating $outputfile (with variable substitutions)"
- if cat >$outputfile.$$ <<!GROK!THIS!
- # RCSid[] = "@(#)$Header: sendmail.SH,v 3.2 87/03/26 08:28:03 pb Rel $"
- #
- ##################################################
- ##################################################
- ##############
- ############## configure for sendmail tables + domains
- ##############
- ##################################################
- ##################################################
-
- # directory with nrs file in
- directory $datadir
-
- # enable tracing
- verbose 1
-
- # output format
- output short sendmail
-
- # only want connections on JANET in the MAIL-NIFTP context
- context MAIL janet
- context MAIL pss
-
- # filter this file through macro expander
- comment hdr.file
-
- # Cheat a bit -- where to put the abbreviated info (if wanted)
- filedmn abbrev.dom -abbrev.dom-
-
- # We want the domain gateway tables -- output file is top.dom
- domains
- filedmn top.dom -top.dom-
-
- # now the domains & files - order is critical.
- # the file the short dmn the long dmn
- # AUTOMATIC local tailoring
- # end of local tailoring
- # The academic comunity domain
- filedmn ac.dom uk.ac.
- filedmn uk.dom uk.
-
- # Just stuff the junk elsewhere .. /dev/null ??
- filedmn junk.dom
-
- # And now for the channel tables (i.e. Application Relays)
- # Sigh ..... sendmail UK-1.4 always assumes janet.chn ...
- filechan janet.chn janet
- filechan janet.chn pss
- !GROK!THIS!
- then
- : OK
- else
- echo " " Failed to create $outputfile.$$
- exit 1
- fi
- if [ -r tailor ]
- then ed - $outputfile.$$ << EOF
- /AUTOMATIC local tailoring/r tailor
- w
- EOF
- fi
- if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
- then
- rm -f $outputfile.$$
- echo " " $outputfile not affected
- elif mv $outputfile.$$ $outputfile
- then
- echo " " $outputfile updated
- else
- echo "+++ " $outputfile left in $outputfile.$$
- fi
-